<!DOCTYPE html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<style>
iframe {
  visibility: hidden;
}
</style>
<script>
var frame = null;
function receiveMessage(e) {
  frame.style.visibility = "visible";
  if (window.internals)
    internals.forceCompositingUpdate(document);
  async_handle.done();
}

window.addEventListener("message", receiveMessage, false);

var async_handle = async_test('This test passes if it does not crash');
onload = function() {
  frame = document.createElement("IFRAME");
  frame.width = frame.height = "100%";
  document.body.appendChild(frame);
  frame.src = "resources/cancel-unattached-animation-frame.html";
};
</script>
